import request from '@/utils/request'

// 查询健康指导列表
export function listGuidance(query) {
  return request({
    url: '/gonitis/guidance/list',
    method: 'get',
    params: query
  })
}

// 查询健康指导详细
export function getGuidance(id) {
  return request({
    url: '/gonitis/guidance/' + id,
    method: 'get'
  })
}

// 新增健康指导
export function addGuidance(data) {
  return request({
    url: '/gonitis/guidance',
    method: 'post',
    data: data
  })
}

// 修改健康指导
export function updateGuidance(data) {
  return request({
    url: '/gonitis/guidance',
    method: 'put',
    data: data
  })
}

// 删除健康指导
export function delGuidance(id) {
  return request({
    url: '/gonitis/guidance/' + id,
    method: 'delete'
  })
}

// 健康指导详情
export function detailGuidance(id) {
  return request({
    url: '/gonitis/guidance/detail/' + id,
    method: 'get'
  })
}

